package com.pricl.frame.core.web;

import java.text.SimpleDateFormat;
import java.util.Date;

import org.springframework.core.convert.converter.Converter;

public class CustomerConverter implements Converter<String, Date>  {

	@Override
	public Date convert(String source) {
		WebBingdingInitializer xx;
		SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
        dateFormat.setLenient(false);
        try {
            return dateFormat.parse(source);
        } catch (Exception e) {
            e.printStackTrace();
        }        
        return null;
	}

}
